﻿@model EstimateShippingResultModel
@if (Model.ShippingOptions.Any())
{
    <ul class="shipping-results list-group">
        @foreach (var shippingOption in Model.ShippingOptions)
        {
            <li class="list-group-item shipping-option-item">
                <strong class="option-name">
                    @Loc["ShoppingCart.EstimateShipping.ShippingOptionWithRate", shippingOption.Name, shippingOption.Price]
                </strong>
                <span class="option-description">
                    @Html.Raw(shippingOption.Description)
                </span>
            </li>
        }
    </ul>
}
else if (Model.Warnings.Any())
{
    <div class="message-error alert alert-danger my-3">
        <ul>
            @foreach (var error in Model.Warnings)
            {
                <li>@error</li>
            }
        </ul>
    </div>
}